<template>
	<view>
		<view class="u-margin-20 u-font-weight">
			问题反馈
		</view>
		
		<view class="" style="background: #F1F1F1;padding: 20rpx;">
			<u-input type="textarea" v-model="content" height="300"></u-input>
		</view>
		
		
		<view class="" style="background: #F1F1F1;padding: 20rpx;margin-top: 40rpx;">
			<u-input v-model="phone" placeholder="留下您的方式"></u-input>
		</view>
		
		
		<view style="width: 700rpx;margin:40rpx auto;">
			<u-button type="primary" @click="submit">提交</u-button>
		</view>
		
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	export default{
		data(){
			return{
				content:"",
				phone:"",
			}
		},
		methods:{
			submit(){
				this.$u.post('/user/feedback', {
					content:this.content,
					phone:this.phone
				}).then(res => {
					
					this.$refs.uToast.show({
						title: '提交成功',
						type: 'success',
						back:true
					})
				}).catch(err => {
				
				})
			}
		}
	}
</script>

<style>
</style>
